SUBROUTINE DEFINITIONLIST3
     * Display a definition list containing 3 items

     * Include the RealWeb definitions
     INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP

     * Start the HTML page.
     * Display the text 'Small Glossary' in the browser's title bar.
     CALL RW_START_HTML_PAGE("Small Glossary", "", "", "", "")

     BUF=""
     LIST=""
     
     *Build the LIST string of terms and definitions to be tagged as a definition list
     BUF="Cookie"
     CALL RWS_DLIST_TERM(BUF,"")
     LIST=LIST:BUF

     BUF="A small amount of named data stored by the web server and associated " : ...
        "with a particular page or web site."
     CALL RWS_DLIST_DEF(BUF,"")
     LIST=LIST:BUF

     BUF="CSS"
     CALL RWS_DLIST_TERM(BUF,"")
     LIST=LIST:BUF

     BUF="Cascading Style Sheet. The preferred method of specifying the appearance " : ...
        "of a web page."
     CALL RWS_DLIST_DEF(BUF,"")
     LIST=LIST:BUF

     BUF="Servlet"
     CALL RWS_DLIST_TERM(BUF,"")
     LIST=LIST:BUF

     BUF="A server-side Java program that services HTTP requests and returns HTTP responses."
     CALL RWS_DLIST_DEF(BUF,"")
     LIST=LIST:BUF

     *Tag the LIST string as a definition list
     CALL RWS_DLIST(LIST,"")
     *Display the definition list
     CALL RW_PUT(LIST)

     *Complete the page
     CALL RW_END_PAGE
RETURN

Go to top button